package com.xiaoka.camelv.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.thinkgem.jeesite.common.persistence.IdEntity;

/**
 * http资源
 * 
 * @author xiaoka
 *
 */
@Entity
@Table(name = "camelv_http")
@DynamicInsert
@DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class CamelvHttp extends IdEntity<CamelvHttp> {
	private static final long serialVersionUID = 2000000000L;
	// http服务名称
	private String name;
	// http服务地址
	private String url;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Override
	public String toString() {
		return "CamelvHttp [name=" + name + ", url=" + url + "]";
	}
}
